home *** CD-ROM | disk | FTP | other *** search
/ Medabots Cardz / Medabots CD Cardz Rokusho.bin / pc / assets / rokusho.dxr / 00039_Script_39 < prev    next >
Text File  |  2001-12-07  |  408b  |  20 lines

  1. property mysprite, dx, dy
  2. global hit, placex
  3.  
  4. on beginsprite me
  5.   set mysprite to the spritenum of me
  6.   set dx to the locH of sprite mysprite
  7.   set dy to the locV of sprite mysprite
  8. end
  9.  
  10.  
  11. on exitframe me
  12.   if hit = 1 then 
  13.     set the loc of sprite mysprite to placex
  14.     hit = 0 
  15.     else
  16.     set the locH of sprite mysprite to dx
  17.     set the locV of sprite mysprite to dy
  18.   end if
  19.   
  20. end